package cn.liberals.org.mapper;

import cn.liberals.org.query.DepartmentQuery;
import cn.liberals.org.domain.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper

/**
* @Description: TODO
* @Author: liberals
* @Version: 1.0
* @Date:  2022/6/21 21:43  
*/
public interface DepartmentMapper {

    // 查询所有
    List<Department> loadAll();

    // 根据id
    Department loadById(Long id);

    // 根据Id删除
    void remove(Long id);

    // 新增
    void save(Department department);

    // 根据Id修改
    void update(Department department);

    // 高级+分页查询
    List<Department> queryData(DepartmentQuery departmentQuery);

    // 查询总条数
    Integer queryCount(DepartmentQuery departmentQuery);

}
